<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ include file="../includes/common.jsp" %>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta name="META_MAIN_MENU_ID" content="${currentCategory.uid }" />
        <title>${article.name}</title>
        <meta name="search" content="article" />
        <meta name="author" content="chunhai.chen(15317227@qq.com)" />
        <meta name="description" content="肥猫 肥猫数据 ${currentCategory.name}文章"  /> 
    
        <c:if test="${not empty currentCategory && not empty primaryCategoryTrail}">
            <c:set var="trailLinks" value="">
            </c:set>
            <c:forEach items="${primaryCategoryTrail}" var="v" varStatus="vst">
                <c:set var="tmp" value="<span class='sep'>› </span><a href='/articles/${v.uid}.htm' alt='肥猫 肥猫数据 ${currentCategory.name}文章 ${v.name}' title='肥猫 肥猫数据 ${currentCategory.name}文章 ${v.name}'>${v.name}</a>"/>
                <c:set var="trailLinks" value="${trailLinks}${tmp}">
                </c:set>
            </c:forEach>
			<c:if test="${not empty article}"><c:set var="pname" value="<span class='sep'>› </span><span class='current'>${article.name}</span>"></c:set></c:if>
            <meta name="trailLinks" content="${trailLinks}${pname}" />
        </c:if>
		<c:set var="requester" value="<%=request.getServerName()+ (request.getServerPort()==80 ? "" : ":"+request.getServerPort())%>"/>
		<c:set var="adminlink2" value="<A href='/admin/article/edit.htm?uid=${article.uid }'>编辑${article.name }</A>" />
        <meta name="adminLinks" content="【${adminlink2 }】" />
    </head>
    <body>
    
		<div class="place">
				<a href="/home.htm" title="转到首页">首页</a> ${trailLinks }<span class='sep'>› </span> ${article.name }			
		</div>
    	<c:choose>
        <c:when test="${not empty article}">				  
			<div class="like">
				<h4 ><span style="float:left;">&nbsp;</span>
					<c:choose>
					<c:when test="${not empty article.author && not empty article.author.blogUrl && not empty article.author.email }">
						<A href="http://${person.blogUrl }/admin/article/reprint/${article.author.blogUrl}/${article.author.email}/${article.uid}.htm"  target=_blank  style="float:right;">确定转载下面文章内容及作者信息到我的博客网站：${person.blogUrl }&gt;&gt;</A>
					</c:when>	
					<c:otherwise>
						<p  style="float:right;">文章作者信息不全，不能转载</p>
					</c:otherwise>
					</c:choose>					
				</h4>
			</div>			            				  

			<div id="post-910" class="post">
            	<div class="date"><span><fmt:formatDate value="${article.statusUpdated }" pattern="yyyy"></fmt:formatDate></span><span class="f"><fmt:formatDate value="${article.statusUpdated }" pattern="MM-dd"></fmt:formatDate></span></div>
            	<h2><a rel="bookmark" href="/article/${article.uid }.htm" class="title">${article.name }</a></h2>
				<div class="info">
					<c:if test="${not empty article.author }">
					<span class="author"><a title="由 ${article.author.name } 发表" href="http://${article.author.blogUrl }">${article.author.name }</a></span>
					</c:if>
					<%-- 
					<span class="categories"><a rel="category tag" title="查看 Wordpress 的全部文章" href="http://www.xiaohan86.com/category/wordpress-tips">Wordpress</a></span>
					--%>
                    <c:if test="${not empty article.tags }">
	                    <span class="tags">
		                    <c:forTokens var="tag" items="${article.tags }" delims=",; " ><a rel="tag" href="/articles/tag/${tag }.htm">${tag }</a>&nbsp;&nbsp;</c:forTokens>	                    	
	                    </span>
                    </c:if>
                    <span class="comments"><a title="${article.name } 上的评论" class="Comments off" href="/article/${article.uid }.htm#comments"><em>${article.commentCount }</em> 回复</a></span>
                    <span class="addcomment"><a href="/article/${article.uid }.htm#respond">发表评论</a></span>
					<div class="clear"></div>
				</div>
				<div id="a910" class="con">
					${article.longDesc }
					<div class="clear"></div>
				</div>
				<c:if test="${not empty article.author }">
                <div class="under">
					<p>文章作者：<a href="http://${article.author.blogUrl }">${article.author.name }</a>
					<br>本文地址：<a href="http://${article.author.blogUrl }/article/${article.uid }.htm">http://${article.author.blogUrl }/article/${article.uid }.htm</a>
					<br>版权所有 &copy; 转载时必须以链接形式注明作者和原始出处！
					</p>
				</div>
				</c:if>
            </div>
            
            
            
			<div class="like">
				<h4 ><span style="float:left;">&nbsp;</span>
					<c:choose>
					<c:when test="${not empty article.author && not empty article.author.blogUrl && not empty article.author.email }">
						<A href="http://${person.blogUrl }/admin/article/reprint/${article.author.blogUrl}/${article.author.email}/${article.uid}.htm"  target=_blank  style="float:right;">确定转载上述文章内容及作者信息到我的博客网站：${person.blogUrl }&gt;&gt;</A>
					</c:when>	
					<c:otherwise>
						<p  style="float:right;">文章作者信息不全，不能转载</p>
					</c:otherwise>
					</c:choose>					
				</h4>
			</div>			            				  
			 	
        </c:when>
        <c:otherwise>
            <div class="header">
               <h2>文章资料不存在</h2>
            </div>
        </c:otherwise>
        </c:choose>
        
		<c:if test="${not empty sameGroupArticles }">
        	<content tag="sidebar">
			<div class="block">
				<h3>${article.groupTag }</h3>
	        	<ul>            	 
					<c:forEach items="${sameGroupArticles}" var="v" varStatus="vst">
		                <li><a title="${v.name }" href="/article/${v.uid }.htm">${v.name }</a></li>
	                </c:forEach>
				</ul>
			</div>                 
			</content>
        </c:if>
    </body>
</html>
